﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using EasyMvcBlog.DTO;
using EasyMvcBlog.Domain;
using EasyMvcBlog.CustomerEngine;
using EasyMvcBlog.Data;

namespace EasyMvcBlog.Controllers
{
    public class ArticleController : BaseController
    {
        ArticleDomain articleDomain = new ArticleDomain();

        public ActionResult Index(int id)
        {
            CommentDomain commentDomain = new CommentDomain();

            ArticleDTO articleDto = articleDomain.GetArticleDTO(id);
            ViewBag.ArticleComment = commentDomain.GetArticleComment(id);
            return View(articleDto);
        }


    }
}
